<?php 
class view{
	private $_vars=array();
	static function init()
	{
		return new view();
	}
	function assign($k,$v)
	{
		$this->_vars[$k]=$v;
		return $this;
	}
	function display($tpl)
	{
		$this->assign('res','/setup/views/style');
		$file=ROOT_PATH.'/setup/views/'.$tpl;
		extract($this->_vars);
		include $file;
		exit;
	}
}
?>